package cn.jcet.mapreduce.group;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

/**
 * @author 鲜磊
 * @Date 2020/12/14 18:04
 */
public class OrderReduce extends Reducer<OrderBean,NullWritable,OrderBean,NullWritable> {

    int count = 0;

    @Override
    protected void reduce(OrderBean key, Iterable<NullWritable> values, Context context) throws IOException, InterruptedException {

//        while (count < 3){
            for (NullWritable value : values) {
                context.write(key,NullWritable.get());
            }
//            break;
//        }
    }
}
